package com.etl.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 锁表
 * </p>
 *
 * @author chenfenghai
 * @since 2020-11-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("SYS_LOCK")
public class SysLock implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 锁ID
     */
    @TableId(value = "LOCK_ID", type = IdType.AUTO)
    private Long lockId;

    /**
     * 锁UID
     */
    @TableField("LOCK_UID")
    private String lockUid;

    /**
     * 锁类型，1：调度锁
     */
    @TableField("LOCK_TYPE")
    private Integer lockType;

    /**
     * 失效时间
     */
    @TableField("EXPIRED_TIME")
    private LocalDateTime expiredTime;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    /**
     * 修改时间
     */
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;


}
